package Screens;

import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import java.util.ArrayList;

import Botao.Botao;
import Utils.Utilidades;

public abstract class Screen {
	
	public int x;
	public int y;
	public int width;
	public int height;
	public BufferedImage fundo;
	public ArrayList<Botao>ListaDeBotoes;
	

	public Screen(int X, int Y, int Width, int Height, String fileNome) {
		this.x = X;
		this.y = Y;
		this.width = Width;
		this.height = Height;
		try {
			fundo= Utilidades.LoadImage(fileNome);	
			
		} catch (Exception e) {
			// TODO: handle exception
			//System.out.println("erro load image, classe Screen linha 32");
		}
		
	}
	

	public Screen() {
		// TODO Auto-generated constructor stub
	}


	public abstract void Draw(Graphics2D dbg);
	public abstract void Update(long diffTime);
	public abstract void tratadorTecladoPress(KeyEvent e);
	public abstract void tratadorTecladoReleased(KeyEvent e);	
	public abstract void mouseMoved(MouseEvent e); 	
	public abstract void mouseDragged(MouseEvent e);	
	public abstract void mouseReleased(MouseEvent e);	
	public abstract void mousePressed(MouseEvent e);	
	public abstract void mouseExited(MouseEvent e);
	public abstract void mouseEntered(MouseEvent e);	
	public abstract void mouseClicked(MouseEvent e);
	
	public abstract void setaOpcao(int opcao);
	

}
